home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_name != "ship1")
- {
- if(_Y < -20)
- {
- _alpha = 100;
- }
- if(Key.isDown(32) && 0 < _alpha)
- {
- if(firecount == 0)
- {
- if(1 < _root.bulletstop)
- {
- _root.bonuscountdown--;
- if(0 >= _root.bonuscountdown)
- {
- _root.bonuscountdown = 50;
- _root.bulletstop = 1;
- }
- }
- if(_root.shotsfired < 140)
- {
- _root.shotsfired += 2;
- }
- duplicateMovieClip(_root.bullets,_root.bulletcount,16384 + _root.bulletcount);
- setProperty("_root." + _root.bulletcount, _X, _X);
- setProperty("_root." + _root.bulletcount, _Y, _Y);
- _root.bulletcount = _root.bulletcount + 1;
- if(2010 < _root.bulletcount)
- {
- _root.bulletcount = 2000;
- }
- }
- firecount++;
- if(firecount >= 10)
- {
- firecount = 0;
- }
- }
- else
- {
- firecount = 0;
- if(0 < _root.shotsfired)
- {
- _root.shotsfired -= 0.2;
- }
- }
- _rotation = _root.dragger._rotation;
- }
- }
-